package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class Answer extends BaseDomain{

    //回答对应的问题
    private Question question;
    //回答的内容
    private String content;
    //点赞数
    private Integer sum_upvote;
    //回答的用户
    private User user;


    //问题创建日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


}